﻿<?php
   
 require_once('db_obj.class.php') ;  

/**
 *竞赛信息类  
 *存取竞赛信息  
 *@author kinet 380511703@qq.com
 *@time 2010-4-21 to 2010-4-23
 *@version 1.2
 *@todo 
 */
     
class db_obj_contest extends db_obj{
  
    public function __construct( $db ){
       
        parent::__construct( $db , 'contest','contest_no' );
		$this->add('contest_no' , '');   
        $this->add('name' , '');             // 竞赛名不能重复
        $this->add('sign_begin_time' , '' );     //注册开始时间
        $this->add('sign_end_time' , '' );       //注册结束时间       
        $this->add('begin_time' , '' );     //开始时间
        $this->add('end_time' , '' );       //结束时间
        $this->add('summary','' );         //竞赛概要
        $this->add('addtime','');          //每道题错误添加时间
	    $this->add('status','');          //竞赛状态
    }       
} 
?>